<?php
$this->language->load('METROPOLITEN_custom/METROPOLITEN');
$text_toggle = $this->language->get('text_toggle');
$text_question = $this->language->get('text_question');
$text_facebook = $this->language->get('text_facebook');
$text_twitter = $this->language->get('text_twitter');
$text_twitter_follow = $this->language->get('text_twitter_follow');
$text_payment = $this->language->get('text_payment');
?>

<div id="footer">
  <div class="inner inner_lifted">
  <?php echo $footer_icon_teaser; ?>
    <div class="clear"></div>
  </div>
  
<?php if ($modules) { ?>  
  <div class="inner inner_mods">
  
  <?php if (count($modules) == 1) { ?>
  <?php $modNum = "full_width"; ?>
<?php } ?>
<?php if (count($modules) == 2) { ?>
  <?php $modNum = "one_half"; ?>
<?php } ?>
<?php if (count($modules) == 3) { ?>
  <?php $modNum = "one_third"; ?>
<?php } ?>
<?php if (count($modules) == 4) { ?>
  <?php $modNum = "one_fourth"; ?>
<?php } ?>
<?php if (count($modules) > 4) { ?>
  <?php $modNum = "full_width"; ?>
<?php } ?>
<?php
  $modNumber = count($modules);
  $startmodNumber = 0;
  ?>  
  
  	<?php foreach ($modules as $module) { ?>
    <div class="<?php echo $modNum; ?> <?php if ($startmodNumber < $modNumber - 1) { ?><?php echo ""; ?><?php } else { ?><?php echo "last"; ?><?php } ?>">
      <?php echo $module; ?>
    </div>
    <?php $startmodNumber = $startmodNumber + 1; ?>
      <?php } ?>
    <div class="clear"></div>
  </div>
 <?php } ?> 
  
  <div class="inner">
    <div class="one_fourth column element_from_left">
      <h4><?php echo $text_information; ?></h4>
      <ul class="footer_links">
        <?php foreach ($informations as $information) { ?>
        <li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
        <?php } ?>
      </ul>
    </div>
    <div class="clear"></div>
    <div class="footer_bottom">
      <div class="one_half card_icons">
        <?php if(($this->config->get('METROPOLITENControl_paypal') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="paypal_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_visa') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="visa_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_electron') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="electron_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_master') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="master_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_maestro') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="maestro_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_cirrus') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="cirrus_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_american') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="american_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_2checkout') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="two_checkout_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_delta') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="delta_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_discover') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="discover_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_google') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="google_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_moneybookers') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="moneybookers_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_sage') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="sage_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_solo') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="solo_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_switch') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="switch_icon cards_icon"></div>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_western') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <div class="western_icon cards_icon"></div>
        <?php } ?>
      </div>
      <div class="one_half last social_icons">
      <div class="socials">
    <?php if(($this->config->get('METROPOLITENControl_facebook_id') != null) && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <a href="<?php echo $this->config->get('METROPOLITENControl_facebook_id') ?>" title="facebook"><img src="catalog/view/theme/METROPOLITEN/image/icon_facebook.png" alt="Facebook" /></a>
        <?php } ?>
    <?php if(($this->config->get('METROPOLITENControl_twitter_id') != null) && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <a href="<?php echo $this->config->get('METROPOLITENControl_twitter_id') ?>" title="Twitter"><img src="catalog/view/theme/METROPOLITEN/image/icon_twitter.png" alt="Twitter" /></a>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_pinterest_id') != null) && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <a href="<?php echo $this->config->get('METROPOLITENControl_pinterest_id') ?>" title="Pinterest"><img src="catalog/view/theme/METROPOLITEN/image/icon_pinterest.png" alt="Pinterest" /></a>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_google_id') != null) && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <a href="<?php echo $this->config->get('METROPOLITENControl_google_id') ?>" title="Google+"><img src="catalog/view/theme/METROPOLITEN/image/icon_google.png" alt="Google+" /></a>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_youtube_id') != null) && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <a href="<?php echo $this->config->get('METROPOLITENControl_youtube_id') ?>" title="YouTube"><img src="catalog/view/theme/METROPOLITEN/image/icon_youtube.png" alt="YouTube" /></a>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_vimeo_id') != null) && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <a href="<?php echo $this->config->get('METROPOLITENControl_vimeo_id') ?>" title="Vimeo"><img src="catalog/view/theme/METROPOLITEN/image/icon_vimeo.png" alt="Vimeo" /></a>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_linkedin_id') != null) && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <a href="<?php echo $this->config->get('METROPOLITENControl_linkedin_id') ?>" title="LinkedIn"><img src="catalog/view/theme/METROPOLITEN/image/icon_linkedin.png" alt="LinkedIn" /></a>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_dribble_id') != null) && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <a href="<?php echo $this->config->get('METROPOLITENControl_dribble_id') ?>" title="Dribbble"><img src="catalog/view/theme/METROPOLITEN/image/icon_dribbble.png" alt="Dribbble" /></a>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_picasa_id') != null) && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <a href="<?php echo $this->config->get('METROPOLITENControl_picasa_id') ?>" title="Picasa"><img src="catalog/view/theme/METROPOLITEN/image/icon_picasa.png" alt="Picasa" /></a>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_flickr_id') != null) && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <a href="<?php echo $this->config->get('METROPOLITENControl_flickr_id') ?>" title="Flickr"><img src="catalog/view/theme/METROPOLITEN/image/icon_flickr.png" alt="Flickr" /></a>
        <?php } ?>
        <?php if(($this->config->get('METROPOLITENControl_instagram_id') != null) && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <a href="<?php echo $this->config->get('METROPOLITENControl_instagram_id') ?>" title="Instagram"><img src="catalog/view/theme/METROPOLITEN/image/icon_instagram.png" alt="Instagram" /></a>
        <?php } ?>
    </div>
        
      </div>
      <div class="clear"></div>
      <div class="fuillwidth">
      <?php
      $METROPOLITENControl_seals = $this->config->get('METROPOLITENControl_seals' . $this->config->get('config_language_id'));
      ?>
      <?php if(($METROPOLITENControl_seals != null) && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
        <?php echo html_entity_decode($METROPOLITENControl_seals); ?>
        <?php } ?>
      </div>
    </div>
  </div>
</div>

<div id="powered">
  <div class="inner">
    <?php if(($this->config->get('METROPOLITENControl_copyright') != null) && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
    <?php echo html_entity_decode($this->config->get('METROPOLITENControl_copyright')); ?>
    <?php } ?>
  </div>
</div>

</div>

</body></html>